package com.itheima.tilas.service;

import com.itheima.tilas.dto.SelectAllDeptDTO;
import com.itheima.tilas.dto.UpdateByIdDTO;
import com.itheima.tilas.entity.Dept;
import com.itheima.tilas.po.InsertDeptParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptService {
    List<SelectAllDeptDTO> selectAll();

    int insertDept(InsertDeptParam param);

    int deleteById(Integer id);

    Dept selectById(Integer id);

    int updateById(UpdateByIdDTO info);

    int selectByIdAndName(Integer id,String name);
    int deleteBatchByIds(@Param("ids") List<Integer> ids);

    int insertBatch(@Param("depts") List<Dept> depts);
}


